// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import axios from 'axios';
import 'bootstrap/dist/css/bootstrap.css';
import * as echarts from 'echarts';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Vue from 'vue';
import VueAxios from 'vue-axios';
import App from './App';
import './assets/css/style.default.css';
import './permission';
import router from './router';
import store from './store/index';
Vue.prototype.$echarts = echarts

Vue.prototype.$http = axios;
axios.defaults.withCredentials=true;
Vue.prototype.$axios=axios
Vue.use(VueAxios, axios)
Vue.use(ElementUI)

axios.defaults.baseURL="http://localhost:8088/"
//前后端分离时，多次请求为同一个session
axios.defaults.withCredentials=true
Vue.prototype.$axios=axios


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  store,
})
